home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / misc / emu / amiSPIMsrc.lha / spim-utils.h < prev    next >
C/C++ Source or Header  |  1994-01-17  |  2KB  |  64 lines

  1. /* SPIM S20 MIPS simulator.
  2.    Interface to misc. routines for SPIM.
  3.    Copyright (C) 1990-1994 by James Larus (larus@cs.wisc.edu).
  4.    ALL RIGHTS RESERVED.
  5.  
  6.    SPIM is distributed under the following conditions:
  7.  
  8.      You may make copies of SPIM for your own use and modify those copies.
  9.  
  10.      All copies of SPIM must retain my name and copyright notice.
  11.  
  12.      You may not sell SPIM or distributed SPIM in conjunction with a
  13.      commerical product or service without the expressed written consent of
  14.      James Larus.
  15.  
  16.    THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  17.    IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  18.    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19.    PURPOSE. */
  20.  
  21.  
  22. /* $Header: /home/primost/larus/Software/SPIM/RCS/spim-utils.h,v 1.5 1994/01/18 03:21:45 larus Exp larus $
  23. */
  24.  
  25.  
  26. /* Exported functions: */
  27.  
  28. #ifdef __STDC__
  29. void add_breakpoint (mem_addr addr);
  30. void delete_breakpoint (mem_addr addr);
  31. void fatal_error (char *fmt, ...);
  32. void initialize_registers (void);
  33. void initialize_run_stack (int argc, char **argv);
  34. void initialize_world (int load_trap_handler);
  35. void list_breakpoints (void);
  36. inst_info *map_int_to_inst_info (inst_info tbl[], int tbl_len, int num);
  37. inst_info *map_string_to_inst_info (inst_info tbl[], int tbl_len, char *id);
  38. int read_assembly_file (char *name);
  39. int run_program (mem_addr pc, int steps, int display, int cont_bkpt);
  40. mem_addr starting_address (void);
  41. char *str_copy (char *str);
  42. void write_startup_message (void);
  43. void *xmalloc (int);
  44. void *zmalloc (int);
  45. #else
  46. void add_breakpoint ();
  47. void end_of_assembly_file ();
  48. void delete_breakpoint ();
  49. void fatal_error ();
  50. void initialize_registers ();
  51. void initialize_run_stack ();
  52. void initialize_world ();
  53. void list_breakpoints ();
  54. inst_info *map_int_to_inst_info ();
  55. inst_info *map_string_to_inst_info ();
  56. int read_assembly_file ();
  57. int run_program ();
  58. mem_addr starting_address ();
  59. char *str_copy ();
  60. void write_startup_message ();
  61. char *xmalloc ();
  62. char *zmalloc ();
  63. #endif
  64.